using System;
using System.Collections.Generic;
using System.Text;

namespace Mysoft.Dbf
{
    public class NamingParameters : Dictionary<string, string>
    {

        public string ParseName(string formatName)
        {
            string nameToWrite = formatName;
            foreach (string namingParameter in this.Keys)
            {
                nameToWrite = nameToWrite.Replace("{" + namingParameter + "}", this[namingParameter]);
            }
            return nameToWrite;
        }
    }
}
